package com.igeekhome.ccs.biz.impl;

import com.igeekhome.ccs.biz.ISessionBiz;
import com.igeekhome.ccs.entity.Session;
import com.igeekhome.ccs.mapper.SessionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SessionBizImpl implements ISessionBiz {
    @Autowired
    private SessionMapper sm;
    @Override
    public List<Session> getNowSessionList(int id) {
        return sm.getNowSessionList(id);
    }

    @Override
    public List<Session> getPastSessionList(int id) {
        return sm.getPastSessionList(id);
    }

    @Override
    public int createSession(int customerId) {
        return 0;
    }

    @Override
    public int stopSession(int sessionId) {
        return 0;
    }

    @Override
    public int getSumSession() {
        return sm.getSumSession();
    }

    @Override
    public int getResolvingSession() {
        return sm.getResolvingSession();
    }


}
